package co.edu.udem.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * For a complete reference see 
 * <a href="http://docs.jboss.org/hibernate/stable/annotations/reference/en/html_single/">
 * Hibernate Annotations Communit Documentations</a>
 */
@Entity
@Table(name = "users")
public class User implements Serializable {

	private static final long serialVersionUID = -5527566248002296042L;
	
	@Id
	@Column(name = "USERNAME")
	private String userCode;
	
	@Column(name = "PASSWORD")
	private String password;
	
	@Column(name = "NAME")
	private String name;
	
	@Column(name = "SESSIONID")
	private String sessionId;
	
	@Column(name = "USERTYPE")
	private int userType;
	
	@Column(name = "USERTYPEDESCRIPTION")
	private String userTypeDescription;
	
	@Column(name = "ENABLED")
	private int enabled;

  /**
   * @return the userCode
   */
  public String getUserCode() {
    return userCode;
  }

  /**
   * @param userCode the userCode to set
   */
  public void setUserCode(String userCode) {
    this.userCode = userCode;
  }

  /**
   * @return the password
   */
  public String getPassword() {
    return password;
  }

  /**
   * @param password the password to set
   */
  public void setPassword(String password) {
    this.password = password;
  }

  /**
   * @return the name
   */
  public String getName() {
    return name;
  }

  /**
   * @param name the name to set
   */
  public void setName(String name) {
    this.name = name;
  }

  /**
   * @return the sessionId
   */
  public String getSessionId() {
    return sessionId;
  }

  /**
   * @param sessionId the sessionId to set
   */
  public void setSessionId(String sessionId) {
    this.sessionId = sessionId;
  }

  /**
   * @return the userType
   */
  public int getUserType() {
    return userType;
  }

  /**
   * @param userType the userType to set
   */
  public void setUserType(int userType) {
    this.userType = userType;
  }

  /**
   * @return the userTypeDescription
   */
  public String getUserTypeDescription() {
    return userTypeDescription;
  }

  /**
   * @param userTypeDescription the userTypeDescription to set
   */
  public void setUserTypeDescription(String userTypeDescription) {
    this.userTypeDescription = userTypeDescription;
  }

public int getEnabled() {
	return enabled;
}

public void setEnabled(int enabled) {
	this.enabled = enabled;
}
}
